import { http } from "./axios";

export const put = (url,data,token) => {
    return new Promise((resolve  ) => {
        if(token)
        http.put(url , data,{
            headers:{
                token
            }
        }).then(res => {resolve(res)})
        else
            http.put(url,data).then(res=>{resolve(res)})
    })
}

